﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>文件上传</title>
    <link href="@Url.Content("~/Content/css/global.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/main.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/themes/default/easyui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/themes/gray/tabs.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/themes/icon.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/plan.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.8.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.easyui.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/plan.js")" type="text/javascript"></script>
</head>
<body>
    <form target="targetUpload" name="file" runat="server" method="post" id="file" enctype="multipart/form-data" action="@Url.Content("~/PlanManagement/FileUpload")">
        <div style="height: 30px; padding: 10px 0;">
            <input type="file" class="" id="fileUpload" name="file" />
            @*<ul class="uploading">
                <li>
                    <span class="uploading_button_img"></span>
                    <span class="uploading_button_title">选择文件</span>
                </li>
                <li><span id="uploadFileName" class="uploading_title"></span>&nbsp;&nbsp;</li>
            </ul>*@
            <input type="submit" value="上传" id="upload" style="" onclick="uploadFile()" />
        </div>
    </form>
    <script type="text/javascript">

        var uploadFile = function () {
            var filename = $("#fileUpload").val();
            var s = filename.split("\\");
            var fileName = s[s.length - 1];
            parent.TaskD.AppendFile(fileName);
        };
    </script>
</body>
</html>
